<?php
/**
 * @package                Joomla.Site
 * @subpackage	Templates.beez_20
 * @copyright        Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license                GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

jimport('joomla.filesystem.file');

// check modules
$showRightColumn	= ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom			= ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft			= ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
$showblock			= ($this->countModules('block1') or $this->countModules('block2') or $this->countModules('block3'));
$pageoption = JRequest::getVar('option');
$pageview = JRequest::getVar('view');
if ($showRightColumn==0 and $showleft==0) {
	$showno = 0;
}
$error=JRequest::getVar('error');
JHtml::_('behavior.framework', true);

// get params
$color				= $this->params->get('templatecolor');
$logo				= $this->params->get('logo');
$navposition		= $this->params->get('navposition');
$app				= JFactory::getApplication();
$doc				= JFactory::getDocument();
$templateparams		= $app->getTemplate(true)->params;
$templatepath       = $this->baseurl.'/templates/'.$this->template;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" type="text/css" href="<?php echo $templatepath; ?>/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $templatepath; ?>/css/styles.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $templatepath; ?>/css/reveal.css"/>

<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.reveal.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.inputToggle.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.carouFredSel-6.0.1-packed.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.validate.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function(jQuery) {
		close_popup=function(){		
				var fel=jQuery('#f_focus').html();
				jQuery('#backoverlay').hide();
				jQuery('#show_popup').hide();
				jQuery('#' + fel ).focus();		
		 };
	 });
</script>
<script type="text/javascript">
$(document).ready( function(){	
	$("#foo3").carouFredSel
	({
		responsive	: true,		
		scroll		: 
		{
			duration	:900,
			fx			: "crossfade"
		},
		items		: 
		{
			visible		: 1,
			width		: 646,
			height		: "243"
		} 
	});
	jQuery('input,textarea').inputToggle();
});
</script>

<style>	
 	a {cursor:pointer;}
    .bg_alert{ width:275px; height:115px; background:url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/img/bg_alert.png") no-repeat top left; margin:0px auto; padding:10px 0px 0px 78px; color:#000;}
    .m35l{ margin-left:35px;}
</style>
</head>

<body>
<div id="dialog" style="display:none; position: fixed; top: 10%; left: 35%; z-index:10002;"></div>
<div class="bg_alert" id="show_popup" style="font-size:13px; display:none; position: fixed; top: 35%; left: 50%; z-index:10003; margin-left:-140px;">
    <span id="f_focus" style="display:none;"></span>
    <div style="margin:0; padding-top:0px; min-height:75px;width:260px;" id="alert"></div>
    <div style="padding-left: 40px;"><a href="javascript:void(0);" onclick="close_popup();"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/img/bt_luk.png" alt="" /></a></div>
</div>
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10002;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay"></div>	
<div id="header">
   	<div id="w-header">
        <div class="logo">
  			<a href="index.php">Den effektive organisation</a>
  		</div><!--.logo-->
        <div class="logo2">
   			<a href="#"><img src="<?php echo $templatepath; ?>/img/icon.png" width="64" height="78" alt="" /></a>
  		</div><!--.logo2-->
    </div><!--#w-header-->
</div><!--#header-->

<div id="main">
	<div id="nav-top">
		<jdoc:include type="modules" name="navigate" />
		<jdoc:include type="modules" name="navigate1" />
        
	</div><!--#nav-top-->
    <jdoc:include type="modules" name="login" />
	<?php if($this->countModules('slide')):?>
    <div class="banner">
    	 <jdoc:include type="modules" name="slide" />
    </div><!--.banner-->
    <?php endif; ?>
	<?php if($this->countModules('ads')):?>
    <div class="ads">
    	 <jdoc:include type="modules" name="ads" />
    </div><!--.ads-->
	<?php endif; ?>
    <div class="clear"></div>
    <div id="main-content">
	<div style="display:none">
		<jdoc:include type="message" />
	</div>
	<?php if($pageoption == 'com_content' && $pageview!='featured'): ?>
		<div id="content-left">
			 <div class="myoption">
				<jdoc:include type="modules" name="category" />
			</div>
		</div>
		<div id="content-right">
			<jdoc:include type="component" />
		</div>
	<?php else: ?>
		<jdoc:include type="component" />
	<?php endif; ?>	
		<?php if($showblock): ?>
    	<div class="col">
        	 <jdoc:include type="modules" name="block1" />
        </div><!--.col-->
        <div class="col">
			<jdoc:include type="modules" name="block2" />
        </div><!--.col-->
        <div class="col n-m-r">
			<jdoc:include type="modules" name="block3" />
        </div><!--.col-->

		<?php endif; ?>
    </div><!--#main-content-->
    
</div><!--#main-->
<div id="footer">
	<div id="top-footer">
		<jdoc:include type="modules" name="news-letter" />
        <div class="top-footer-r">
			<jdoc:include type="modules" name="social-buttons" />
        </div><!--.top-footer-r-->
    </div><!--#top-footer-->
    <div id="main-footer">
    	<jdoc:include type="modules" name="footer" />
    </div><!--#main-footer-->
</div><!--#footer-->
<jdoc:include type="modules" name="debug" />
<?php if($error==1):?>
  <script type="text/javascript">
	jQuery('#show_login').click();
  </script>
<?php endif;?>
</body>
</html>
